<?php $this->load->view('_inc/header'); ?>

<table style="width:100%">
    <tr>
        <td style="width:20%;line-height: 25px; text-align: center">
            <table>
                <tr><td><img class="perfil" src='<?php echo base_url()?>public/fotos/<?php echo $professor->id?>.jpg'/></td></tr>
                <tr><td><?php echo form_label('Professor:'); echo $professor->nome?></td></tr>
                <tr><td><?php echo form_label('Matrícula:'); echo $professor->matricula?></td></tr>
                <tr><td><hr></td></tr>
                <tr><td><a class="icone editar">Editar Meus Dados</a></td></tr>
                <tr><td><h2>Outros semestres:</h2></td></tr>
                <tr><td><?php echo form_dropdown('',$semestres,'')?></td></tr>
            </table>
        </td>
        <td style="width:80%" valign="top">
            <h1>Minhas Turmas</h1>
            <table class="listagem">
                <tr>
                    <th>Nome</th>
                    <th>Letra</th>
                    <th>N Alunos</th>
                </tr>
                <?php foreach($materias as $materia){ ?>
                    <tr>
                        <td><?php echo $materia->disciplina?></td>
                        <td><?php echo $materia->letra?></td>
                        <td><?php ?></td>
                        <td><?php echo anchor('turma/visualizar/'.$materia->id,' ','class="icone pesquisar"');?></td>
                    </tr>
                <?php }?>
            </table>
        </td>
    </tr>
</table>

<?php $this->load->view('_inc/footer'); ?>